// pages/template/banner.js
//获取应用实例
const app = getApp()
Page({
  data: {
    imgUrls: ['https://topic.camel.com.cn/module/wap_index_focus_201709/7645c28f-9674-49f0-8490-dca3f6237496.jpg?d=1',
      'https://topic.camel.com.cn/module/wap_index_focus_201709/cb445730-dda3-466e-ab17-60f1f6ca1cb7.jpg',
      'https://topic.camel.com.cn/module/wap_index_focus_201709/92b890bb-7182-4ba4-8bc7-3ffd7ebbcf1c.jpg'
    ],

    indicatorDots: true,
    indicatorColor: '#fff',
    indicatorActiveColor: '#d2ab44',
    autoplay: true,
    interval: 5000,
    duration: 500,
    circular: true,
    news: {
      'type': '公告',
      'content': '关于学习中央惠农政策大会通知'
    },
    topics: [{ 'avarl': "http://newbiz.51grant.com/data/weicun/top_hot.png", 'topic_id': 22, 'topic_title': '全村一起晒丰收' }, { 'avarl': "http://newbiz.51grant.com/data/weicun/top_hot.png", 'topic_id': 22, 'topic_title': '全村一起晒丰收' }, { 'avarl': "http://newbiz.51grant.com/data/weicun/top_hot.png", 'topic_id': 22, 'topic_title': '全村一起晒丰收' }, { 'avarl': "http://newbiz.51grant.com/data/weicun/top_hot.png", 'topic_id': 22, 'topic_title': '全村一起晒丰收' }, { 'avarl': "http://newbiz.51grant.com/data/weicun/top_hot.png", 'topic_id': 22, 'topic_title': '全村一起晒丰收' }]
  },
  flowId: function (e) {
    console.log(e)
  },

  smsgroup: [{
    'avatar': 'http://newbiz.51grant.com/data/weicun/cm_header.png',
    'push_time': 1539782997,
    'is_auth': 1,
    'topic_id': 22,
    'topic_title': '四方边村',
    'connets': '田集村按照镇党委政府要求，挨家排户发放扫黑打恶宣传纸，组织学习贯彻落实镇党委政府政策',
    'push_imgs': ['http://newbiz.51grant.com/data/weicun/cm_pic1.png', 'http://newbiz.51grant.com/data/weicun/cm_pic1.png', 'http://newbiz.51grant.com/data/weicun/cm_pic1.png'],
    'watch_nums': 126,
    'comment_nums': 55,
    'like_nums': 9,
  }],
  onLoad: function (request) {
    var $this = this;
    app.util.request({
      url: 'wcun/index/searchSms',
      data: {
        m: 'signup'
      },
      method: 'post',
      success: function (response) {
        $this.setData({
          'imgUrls2': response.data
        })
      }
    });

  }
})